package stu.sup.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import stu.sup.entity.Buycart;
import stu.sup.entity.BuycartExample;

import java.util.List;

public interface BuycartMapper {
    int countByExample(BuycartExample example);

    int deleteByExample(BuycartExample example);

    int deleteByPrimaryKey(Integer buycartId);

    int insert(Buycart record);

    int insertSelective(Buycart record);

    List<Buycart> selectByExample(BuycartExample example);

    Buycart selectByPrimaryKey(Integer buycartId);

    @Select("select * from buycart where user_login_id=#{userloginId}")
    List<Buycart> selectByUserId(Integer userloginId);

    int updateByExampleSelective(@Param("record") Buycart record, @Param("example") BuycartExample example);

    int updateByExample(@Param("record") Buycart record, @Param("example") BuycartExample example);

    int updateByPrimaryKeySelective(Buycart record);

    int updateByPrimaryKey(Buycart record);
}